package com.qf.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author YDW
 * projectName:project2202_4
 * time:2022/6/17 16:10
 * description:
 */
@Component
public class XxlJobDemo {


    //指定任务名称
    @XxlJob("test-me")
    public void job(){
        System.out.println("执行了。。。。"+ new Date());
    }
}
